package edu.hunau.cxb18home.pojo;

/**
 * @author gwl
 * @create 2020-03-05 上午 11:48
 */
public class Grade {
  private int gid;

  private int score;


//关联属性
  private Student student;

  private Course course;

  public Grade() {
  }

  public int getGid() {
    return gid;
  }

  public void setGid(int gid) {
    this.gid = gid;
  }

  public int getScore() {
    return score;
  }

  public void setScore(int score) {
    this.score = score;
  }

  public Student getStudent() {
    return student;
  }

  public void setStudent(Student student) {
    this.student = student;
  }

  public Course getCourse() {
    return course;
  }

  public void setCourse(Course course) {
    this.course = course;
  }

  @Override
  public String toString() {
    return "Grade{" +
            "gid=" + gid +
            ", score=" + score +
            ", student.sid=" + student +
            ", course.cid=" + course +
            '}';
  }
}
